#include <zlib/lib/Ink_inet.h>
#include <iostream>

using namespace std;

int main()
{
	IpEntry ip_entry;
	ip_entry.init(AF_INET6, "1:1:1:1:1:1:1:8", 8888);
	char buff[1024];
	ip_entry.get_ip_string(buff,sizeof(buff));
	cout << buff << endl;
	IpEntry ip_entry1;
	ip_entry1.init(INADDR_ANY, 8000);
	ip_entry1.get_ip_string(buff,sizeof(buff));
	cout << buff << endl;
	IpEntry ip_entry2;
	ip_entry2.init(in6addr_any, 8000);
	ip_entry2.get_ip_string(buff,sizeof(buff));
	cout << buff << endl;
	IpEntry ip_entry3;
	ip_entry3.init(ip_entry2);
	ip_entry3.get_ip_string(buff,sizeof(buff));
	cout << buff << endl;
	IpEntry ip_entry4;
	ip_entry4 = ip_entry3;
	ip_entry4.get_ip_string(buff,sizeof(buff));
	cout << buff << endl;
	cout <<111111<< endl;
	return 0;
}
